package designpattern.factory;

public class CarFactoryAddon implements Factory{
	private String carname = null;
	public CarFactoryAddon(String name){
		carname = name;
	}

	public Car createCar(){
		if(carname.equals("Honda")){
			return new HondaCar("Honda");
		}else{
			System.out.println("No car is avaible.");
			return null;
		}
	}
}
